﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace B13_Ex03_David_300512340_Alexey_321203689.ChainOfResp
{
    /// <summary>
    /// Pattern: Chain of responsibility.
    /// Role: Handler.
    /// 1. Defines an abstract class for handling the requests.
    /// 2. Implements the successor link.
    /// </summary>
    public abstract class Handler
    {
        protected Handler m_Successor;

        public void SetSuccessor(Handler i_Successor)
        {
            m_Successor = i_Successor;
        }

        public abstract void ProcessRequest(UserWrapper i_SelectedFriend);
    }
}
